<?php 

// load Smarty library 
require('smarty/Smarty.class.php'); 

// The setup.php file is a good place to load 
// required application library files, and you 
// can do that right here. An example: 
// require('guestbook/guestbook.lib.php'); 

class SmartyInit extends Smarty { 

   function SmartyInit() 
   { 

        // Class Constructor. 
        // These automatically get set with each new instance. 

        $this->Smarty(); 

        $this->compile_dir = "app/template_c";
		$this->cache_dir = "app/template_c/cache_c";
		$this->template_dir = "app/template";
		$this->config_dir   = "app/conf";

		$this->assign("baseUrl","/poh"); 
		$this->assign("baseImg","/poh/webroot/images");
		$this->assign("baseCss","/poh/webroot/css"); 
		$this->assign("baseJs","/poh/webroot/js");
		$this->assign("baseUp","/poh/webroot/upload");
		$this->assign("baseFl","/poh/webroot/flash");
		
		
        $this->caching = false; 
		
		$this->config_load('smarty.conf'); 

		$this->assign("project_name",$this->get_config_vars("project_name"));
   }

} 
?> 